﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections.ObjectModel;
using phones.Model;
using System.Windows;

namespace phones.Repository
{
    public static class OptionsStatic
    {

        // private ServiceNodesRepository _nodeRepository;
        // public ObservableCollection<ServiceNode> ServiceNodes { get; set; }
        public static ServiceNode node;
        public static ServiceNodesRepository defaultNode;

        public static Model.ServiceNode ServiceNode
        {

            get
            {
                if (node == null)
                {
                    defaultNode = new ServiceNodesRepository();
                    node = defaultNode.GetByName("Витебск");
                    return node;
                }
                return node;
            }

            set
            {
                node = value;
            }

        }






    }
}
